//
//  LZYDownloaderManager.h
//  LZYDownLoaderDemo
//
//  Created by bjhj on 17/5/8.
//  Copyright © 2017年 刘占宇个人项目. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "LZYDownLoader.h"

@interface LZYDownloaderManager : NSObject

+ (instancetype)shareInstance;


- (LZYDownLoader *)getDownLoaderWithURL: (NSURL *)url;

- (LZYDownLoader *)downLoadWithURL: (NSURL *)url fileInfo:(DownLoadInfoType)downLoadInfoBlcok success:(SuccessBlockType)successBlock fail:(FailBlockType)failBlock progress:(ProgressType)progressBlock state:(StateChangeType)stateBlock;


- (void)pauseWithURL: (NSURL *)url;


- (void)resumeWithURL: (NSURL *)url;


- (void)cancelWithURL: (NSURL *)url;


- (void)cancelAndClearCacheWithURL: (NSURL *)url;



- (void)pauseAll;

- (void)resumeAll;


@end
